package com.carleasoft.mps.cms.business.article.constants;

import com.carleasoft.mps.core.result.BaseResult;

public enum ExceptionCMSEnum implements BaseResult {
    CHARS_OVER_LENGTH("66060001","摘要字符过长!"),
    TITLE_NULL("66060002","标题为空,请填写!"),
    CATEGORY_NULL("66060003","栏目为空,请填写!"),
    ARTICLE_DATE_NULL("66060004","正文为空,请填写!"),
    REPRINT_HREF("66060005","原文链接未填写!"),
    REPRINT_WEBSITE("66060006","转载网站名称未填写!"),
    PARAMETER_INVALID("66060007","填入的参数不合法!"),
    CATEGORY_CODE("66060008","栏目编码未获取到!"),
    SITE_NULL("66060009","站点编码未获取到!"),
    CONTENT_MODEL("66060010","内容模型未获取到!"),
    FLOW_STATUS_NULL("66060011","流程状态或文章状态是空的!"),
    HAS_CATEGORY("66060012","当前栏目下存在子栏目!"),
    HAS_ARTICLE("66060013","当前栏目下存在文章引用!"),
    IMAGES_NULL("66060014","图片地址是空的"),
    JUMP_LINK("66060015","跳转链接是空的"),
    TO_TOP("66060016","当前状态无法置顶"),
    DIGEST_NULL("66060017","摘要未填写"),
    SLIDESHOW_TOP("66060018","轮播不能置顶"),
    CATEGORY_NOT_ONE("66060019","栏目名称重复"),
    ARTICLE_CODE("66060020","文章编码未获取到"),
    CATEGORY_BLOCK_UP("66060021","当前栏目已停用"),
    TITLE_LENGTH("66060022","填写标题字段太长，请重新填写"),
    DATABASE_NO("66060023","数据不存在"),
    STATE_NO("66060024","数据不是已停用,不允许删除"),
    EXITS_NO("66060025","已存在数据，不允许删除"),
    PASS_WORD("66060026","密钥不对，请重新输入"),
    CATEGORY_NO("66060027","该资源库下有分类，不允许删除"),
    NO_DELETE("66060028","不允许删除,分类已存在使用"),
    NO_DEPT("66060029","不允许添加已存在该科室"),
    NO_PERMISSION("66060030","您没有权限查看"),
    NO_SOURCE_EXITS("66060031","资源不存在了"),
    NO_CONTENT_EXITS("66060032","已存在考核内容，不允许重复添加"),




    ;

    private String code;

    private String message;

    ExceptionCMSEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode(){
        return this.code;
    }

    @Override
    public String getMessage(){
        return this.message;
    }
}
